<%@page pageEncoding="UTF-8" isELIgnored="false" session="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@taglib prefix="f" uri="http://www.slim3.org/functions"%>

<html>
<head>
    <jsp:include page="${ f:url('/include/header.jsp') }"></jsp:include>
</head>
<body>
    <div id="page">
    <jsp:include page="${ f:url('/include/navigation.jsp') }" />
    <div id="content">
    <div id="contents">
    
        <h1 id="contents-header">問題新規登録</h1>
        
        <jsp:include page="${ f:url('/include/message.jsp') }" />
    
        <div id="contents-article">

            <form action="${ f:url('createPost') }" method="post">
                <fieldset>
                    <legend>問題</legend>
                    <div class="row">
                        <label>問題文</label>
                        <span>
                            <textarea name="content" rows="8" cols="60">${ f:h(content) }</textarea>
                        </span>
                        <div class="formhelp">140文字以内</div>
                    </div>
                </fieldset>
                <fieldset>
                    <legend>選択肢</legend>
                    <div class="row">
                        <label>選択肢1</label>
                        <span><input type="text" ${ f:text('selection0') } size="30" /></span>
                    </div>
                    <div class="row">
                        <label>選択肢2</label>
                        <span><input type="text" ${ f:text('selection1') } size="30" /></span>
                    </div>
                    <div class="row">
                        <label>選択肢3</label>
                        <span><input type="text" ${ f:text('selection2') } size="30" /></span>
                    </div>
                    <div class="row">
                        <label>選択肢4</label>
                        <span><input type="text" ${ f:text('selection3') } size="30" /></span>
                    </div>
                </fieldset>
                <br />
                <input type="submit" value="保存" class="button" />
            </form>

        </div>
    
    <div class="clear"></div>
    <br />
    </div>
    </div>
    <jsp:include page="${ f:url('/include/footer.jsp') }"></jsp:include>
    </div>
</body>
</html>
